<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <div th:fragment="modal">
    <div class="modal fade" id="Modal_teacher">
      <div class="modal-dialog">
        <div class="modal-content">
          <!-- 模态框头部 -->
          <div class="modal-header">
            <h4 class="modal-title">新建课程</h4>
            <button type="button" class="close" data-dismiss="modal">&times;</button>
          </div>

          <!-- 模态框主体 -->
          <div class="modal-body">
            <form th:action="@{/teacherAddCourse}" method="post">
              <input type="hidden" name="courseCreatedId" th:value="${session.user.userId}">
              <input type="hidden" name="userId" th:value="${session.user.userId}">
              <input type="hidden" name="courseImg" value="2.jpg">
              <span style="font-size: 18px;font-weight: bold;">课程名称</span><input class="form-control" type="text" name="courseName"><br>
              <span style="font-size: 18px;font-weight: bold;">课程教师</span><input class="form-control" type="text" name="courseTeacherName" th:value="${session.user.userName}">
              <input class="btn-success btn" type="submit" value="完成">
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div th:fragment="modal">
    <div class="modal fade" id="Modal_student">
      <div class="modal-dialog">
        <div class="modal-content">

          <!-- 模态框头部 -->
          <div class="modal-header">
            <h4 class="modal-title">添加课程</h4>
            <button type="button" class="close" data-dismiss="modal">&times;</button>
          </div>

          <!-- 模态框主体 -->
          <div class="modal-body">
            <form th:action="@{/addCourse}" method="post">
              <input type="hidden" name="userId" th:value="${session.user.userId}">
              <span style="font-size: 18px;font-weight: bold;">邀请码</span><input class="form-control" type="text" name="invitationCode" placeholder="请输入课程邀请码"><br><br>
              [[${msg}]]
              <input class="btn btn-success" type="submit" value="提交">
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>
</html>